﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using OgilvyOne.Model;
using OgilvyOne.DALFactory;

namespace OgilvyOne.BLL
{
    public class CmsArticleTagBll
    {
        public int Add(CmsArticleTagModel model)
        {
            return CmsArticleTagFactory.create().Add(model);
        }
        public bool Update(CmsArticleTagModel model)
        {
            return CmsArticleTagFactory.create().Update(model);
        }
        public CmsArticleTagModel GetTagModel(int tid)
        {
            return CmsArticleTagFactory.create().GetTagModel(tid);
        }
        public IList GetTagList(CmsArticleTagModel q)
        {
            return CmsArticleTagFactory.create().GetTagList(q);
        }
        public IList GetTag(CmsArticleTagModel q)
        {
            return CmsArticleTagFactory.create().GetTag(q);
        }
        public IList GetTagList(string tids)
        {
            return CmsArticleTagFactory.create().GetTagList(tids);
        }
        public bool Delete(int tid)
        {
            return CmsArticleTagFactory.create().Delete(tid);
        }
        public bool AddNum(int tid)
        {
            return CmsArticleTagFactory.create().AddNum(tid); 
        }
    }
}
